package com.xintai.sparepart.spareandpart.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xintai.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xintai.common.annotation.Excel;
import com.xintai.common.core.domain.BaseEntity;

/**
 * 库位对象 bei_kuwei
 *
 * @author xintai
 * @date 2020-12-23
 */
public class BeiKuwei extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库位主键 */
    private Integer kuweiId;

    /** 仓库ID， 关联 bei_cangku 表 */
    @Excel(name = "仓库ID， 关联 bei_cangku 表")
    private Integer cangkuId;

    /** 库位名称 */
    @Excel(name = "库位名称")
    private String kuweiName;

    /** 是否删除， 字典数据不删除，0  正常可用，1 删除禁用， 但可关联查询 */
    @Excel(name = "是否删除， 字典数据不删除，0  正常可用，1 删除禁用， 但可关联查询")
    private String kuweiIsdel;

    /** 备注 */
    @Excel(name = "备注")
    private String kuweiRemark;

    /** 维护人ID */
    @Excel(name = "维护人ID")
    private Long kuweiUid;

    /** 维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date kuweiTime;

    private SysUser sysUser;

    private BeiCangku beiCangku;

    public void setKuweiId(Integer kuweiId)
    {
        this.kuweiId = kuweiId;
    }

    public Integer getKuweiId()
    {
        return kuweiId;
    }
    public void setCangkuId(Integer cangkuId)
    {
        this.cangkuId = cangkuId;
    }

    public Integer getCangkuId()
    {
        return cangkuId;
    }
    public void setKuweiName(String kuweiName)
    {
        this.kuweiName = kuweiName;
    }

    public String getKuweiName()
    {
        return kuweiName;
    }
    public void setKuweiIsdel(String kuweiIsdel)
    {
        this.kuweiIsdel = kuweiIsdel;
    }

    public String getKuweiIsdel()
    {
        return kuweiIsdel;
    }
    public void setKuweiRemark(String kuweiRemark)
    {
        this.kuweiRemark = kuweiRemark;
    }

    public String getKuweiRemark()
    {
        return kuweiRemark;
    }
    public void setKuweiUid(Long kuweiUid)
    {
        this.kuweiUid = kuweiUid;
    }

    public Long getKuweiUid()
    {
        return kuweiUid;
    }
    public void setKuweiTime(Date kuweiTime)
    {
        this.kuweiTime = kuweiTime;
    }

    public Date getKuweiTime()
    {
        return kuweiTime;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public BeiCangku getBeiCangku() {
        return beiCangku;
    }

    public void setBeiCangku(BeiCangku beiCangku) {
        this.beiCangku = beiCangku;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("kuweiId", getKuweiId())
            .append("cangkuId", getCangkuId())
            .append("kuweiName", getKuweiName())
            .append("kuweiIsdel", getKuweiIsdel())
            .append("kuweiRemark", getKuweiRemark())
            .append("kuweiUid", getKuweiUid())
            .append("kuweiTime", getKuweiTime())
            .toString();
    }
}
